import { fromJS } from 'immutable';
import reducerHandler from 'shared/utils/reducerHandler';

const initialState = fromJS({
  projectList: {},
  tagList: {},
});

const handlers = {
  ['PROJECT_LIST'](state, { payload }) {
    return state
      .set('projectList', payload)
  },
  ['GET_TAG'](state, { payload }) {
    return state
      .set('tagList', payload)
  }
};

export default reducerHandler(initialState, handlers);
